import { createRouter, createWebHashHistory } from 'vue-router';
import event from './eventEmitter';

const router = createRouter({
  history: createWebHashHistory(),
  routes: []
})

event.on('API:UN_AUTH', () => {
  router.push('/login')
})

export default router;